package com.batchengine.util;

import org.apache.log4j.Logger;

/**
 * Created by sunil.incubator@yahoo.com.
 * User: sunil.kalva
 * Date: Jun 17, 2009
 */
public class LoggingFactory {

    private LoggingFactory() {
    }

    public static Logger createLogger() {

        Throwable t = new Throwable();
        StackTraceElement directCaller = t.getStackTrace()[1];
        return Logger.getLogger(directCaller.getClassName());
    }


}
